// import H5JSSDK from ’H5JSSDK‘；
import H5JSSDK from './h5jssdk';

// 实例化
const h5JSSDK = new H5JSSDK();

// 调用登录接口
const loginCls = h5JSSDK.login({
  success({ account, password }) {
    // eslint-disable-next-line no-alert
    alert(`${account}登录成功，密码是${password}`);
    h5JSSDK.close(loginCls);
  },
  fail(msg) {
    // eslint-disable-next-line no-alert
    alert(msg);
  }
});